@echo off

setlocal enabledelayedexpansion

set PYTHON_CACHE_DIR_PATH="%PYTHON_CACHE_DIR%"

if  %PYTHON_CACHE_DIR_PATH% == "" (

echo system variable PYTHON_CACHE_DIR is not defined ! 

echo please check again!

@pause

exit /b

) 


for /l %%i in (0,0,0) do (
    
set /p "dep=please enter the dependency to add offline: "

echo try to add : "!dep!" offline

uv add "!dep!" --find-links "!PYTHON_CACHE_DIR_PATH!" --offline --no-index

echo.

)


@pause